<template>
    <h1 @click="add">{{value}}</h1>
</template>

<script setup lang="ts">
import store from "../store"
const props = defineProps({
  value: Number
})
const add = () => store.commit('increment')

</script>

<style lang="scss" scoped>

</style>